export default {
    getWorkMode: (type) => {
        let X1HybridG3 = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode',
            6: 'EPS check mode',
            7: 'EPS mode',
            8: 'Self Test',
            9: 'Idle Mode',
            10: 'Standby Mode'
        };
        let X1BoostAirMini = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode'
        };
        let X3HybridG1 = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode',
            6: 'EPS check mode',
            7: 'EPS mode',
            8: 'Self Test',
            9: 'Idle Mode',
            10: 'PvWakeUpBat Mode',
            11: 'Standby Mode'
        };
        let X320K30K = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode'
        };
        let X3Mic = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode'
        };
        let X1BoostPro = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode'
        };
        let X1AC = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode',
            8: 'Self Test',
            9: 'Idle Mode',
            10: 'Standby Mode'
        };
        let HybridA1 = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode',
            6: 'EPS check mode',
            7: 'EPS mode',
            8: 'Self Test',
            9: 'Idle Mode',
            10: 'Gen Check Mmode',
            11: 'Gen Run Mode',
            12: 'RSD Standby'
        };
        let J1ESSHB = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode',
            6: 'EPS check mode',
            7: 'EPS mode',
            8: 'Self Test',
            9: 'Idle Mode',
            10: 'Standby Mode'
        };
        let X3HybridG4 = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode',
            6: 'EPS check mode',
            7: 'EPS mode',
            8: 'Self Test',
            9: 'Idle Mode',
            10: 'Standby Mode'
        };
        let X1HybridG4 = {
            0: 'Waiting',
            1: 'Checking',
            2: 'Normal',
            3: 'Fault',
            4: 'Permanent Fault',
            5: 'Upgrade',
            6: 'Off-grid Waiting',
            7: 'Off-grid',
            8: 'Self Testing',
            9: 'Idle',
            10: 'Standby'
        };
        let X3MicG2 = {
            0: 'Wait Mode',
            1: 'Check Mode',
            2: 'Normal Mode',
            3: 'Fault Mode',
            4: 'Permanent Fault Mode',
            5: 'Update Mode'
        };
        if (type == 3) {
            return X1HybridG3;
        } else if (type == 4) {
            return X1BoostAirMini;
        } else if (type == 5) {
            return X3HybridG1;
        } else if (type == 6) {
            return X320K30K;
        } else if (type == 7) {
            return X3Mic;
        } else if (type == 8) {
            return X1BoostPro;
        } else if (type == 9) {
            return X1AC;
        } else if (type == 10 || type == 11 || type == 12) {
            return HybridA1;
        } else if (type == 13) {
            return J1ESSHB;
        } else if (type == 14) {
            return X3HybridG4;
        } else if (type == 15) {
            return X1HybridG4;
        } else if (type == 16) {
            return X3MicG2;
        }
    }
}